using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using System;
public class UI_Load : BaseUI
{
    public static string key = "UI_Load";


    private void Awake()
    {
        UIManager.showUIs?.Add(UI_Load.key, this);
        //定义窗口性质 (默认数值)
        //窗口类型
        currentUIType.type = UIFormType.PopUp;
        //窗口所在节点
        currentUIType.mode = UIFormShowMode.HideOther;
        /// UI窗体透明度类型
        currentUIType.lucenyType = UIFormLucenyType.Lucency;

        EventMgr.Ins.AttachEvent("OnClickLoad1", OnClickLoad1);
        EventMgr.Ins.AttachEvent("OnClickLoad2", OnClickLoad2);
        EventMgr.Ins.AttachEvent("OnClickLoad3", OnClickLoad3);
        EventMgr.Ins.AttachEvent("OnClickExitLoad", OnClickExitLoad);
    }

    public void Start()
    {
    }

    public void OnClickLoad1(object param = null)
    {

    }

    public void OnClickLoad2(object param = null)
    {

    }

    public void OnClickLoad3(object param = null)
    {

    }



    public void OnClickExitLoad(object param = null)
    {
         UIManager.instance.CloseUI(key);
    }


}
